/**
 * 
 */
package com.example.spring_cloud_feign.web;

import javax.annotation.Resource;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import com.example.spring_cloud_feign.intf.ComputeClient;

/**
 * @author Administrator
 *
 */
@RestController
public class ConsumerController {
	@Resource
	private ComputeClient computeClient;

	@GetMapping(value = "/add")
	public Integer add() {
		return computeClient.add(10, 20);
	}
}
